/*
 * usb.c
 *
 *  Created on: Jul 2, 2023
 *      Author: 42577
 */

#include <usbd_keyboard.h>
#include "key.h"
#include "timer.h"
#include "keyboard.h"

#include "ch32v30x_usbhs_device.h"


static int hid_flag = 0;

void hid_flg_release(void)
{
    hid_flag = 1;
}

void HID_init(void)
{
    USBHS_RCC_Init();
    USBHS_Device_Init( ENABLE );
    USB_Sleep_Wakeup_CFG();
}

